package com.webDramaUSA.service.impl;

import com.webDramaUSA.dao.IUserDao;
import com.webDramaUSA.model.User;
import com.webDramaUSA.service.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Aaron on 2017/10/28.
 */
@Service("userService")
public class UserServiceImpl implements IUserService {

    @Resource
    private IUserDao userDao;

    public User selectUser(long userId) {
        return this.userDao.selectUser(userId);
    }

    public List<User> selectAllUser() {
        return this.userDao.selectAllUser();
    }

}
